cmake_minimum_required( VERSION 3.10 )
 
#项目名
set ( PROJ_NAME  mfcapp)
project ( ${PROJ_NAME}
  LANGUAGES CXX)

add_subdirectory("src")

message(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)


#set ( WIN_SYSTEM )
#if(WIN32)
#  if(MSVC)
#     set ( WIN_SYSTEM  "WIN32" ) 
#  elseif(CMAKE_COMPLIER_IS_GNUCXX)
#     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows")
#  else()
#  endif()
#elseif(UNIX)
#  # nothing to do
#else()
#  message(SEND_ERROR "This cmake file only used in Windows!")
#endif()
  
#设置预编译项
#add_definitions( -DQLEMR_CFG_DLL )
#共享DLL中使用 MFC
#ADD_DEFINITIONS(-D_AFXDLL)
#SET(CMAKE_MFC_FLAG 2)#设置CMAKE_MFC_FLAG为2,0表示使用标准的MFC，1表示静态MFC,2表示共享


#设置字符集
#add_definitions(-DUNICODE -D_UNICODE)

#install( FILES       ${PROJECT_SOURCE_DIR}/../../update.txt
#         DESTINATION ${CMAKE_INSTALL_PREFIX} )#DESTINATION指定安装路径
 
 
 
 